package com.powernode.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */
@ConfigurationProperties(prefix = "upload")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class UploadProperties {
   //访问文件的地址
   private String baseUrl;
   //允许文件上传的类型
   private List<String> allowTypes;

}
